<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">欢迎光临！</span>
    <hr/>
    <table class="list">
<!--        <button class="btn btn-block" ><a href="/templates/add.html">添加用户</a></button>-->
        <tr>
            <th>id</th>/
            <th>车牌号</th>
            <th>Etc卡号</th>
            <th>余额</th>
            <th>用户名</th>
            <th>使用年限</th>
            <th>操作</th>

        </tr>

        <tr th:each="user : ${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.carid}"></td>
            <td th:text="${user.phone}"></td>
            <td th:text="${user.money}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.years}"></td>
<!--            <td th:text="${#dates.format(user.createtime,'yyyy-MM-dd')}"></td>-->
<!--            <td th:text="${user.rid}"></td>-->

            <td><a href=" " th:href="@{/users/deleteEct(id=${user.id})}">删除</a>
                <a href=" " th:href="@{/users/toupdateEct(id=${user.id})}">修改</a></td>
<!--            <td><a href=" " th:href="@{/users/deleteEct(id=${user.id})}">删除</a></td>-->


        </tr>
    </table>
</div>
</body>
</html>